package org.duiduo.service;

import org.duiduo.common.bean.OrderVO;
import org.duiduo.common.request.OrderFindPageRequest;
import org.duiduo.common.response.Page;
import org.duiduo.entity.Order;
import org.duiduo.entity.User;

public interface OrderService {

	// void updateState(String tradeNo, Integer state, String gmtPayment);

	Order buy(Long bookId, User user);

	int buySuccess(OrderVO orderVO, User user);

	Page findPage(User user, OrderFindPageRequest request);

	int deleteById(Integer id, User user);
}
